// 元组结构体
struct Color(u8, u8, u8);

fn main() {
    let white = Color(255, 255, 255);
    let red = white.0;
    let green = white.1;
    let blue = white.2;
    println!("Red values: {red}");
    println!("Green values: {green}");
    println!("Blue values: {blue}");

    let orange = Color(255, 165, 0);
    let Color(r, g, b) = orange;
    println!("R: {r}, G: {g}, B: {b}  (orange)");
    let Color(r, _, b) = orange;
}